package ac.zlf.springmybatis.core.mybatis.domain;

import java.util.Iterator;
import java.util.List;

public abstract interface Page<T> extends List<T> {
    public abstract int getNumber();

    public abstract int getPageSize();

    public abstract int getTotalPages();

    public abstract int getNumberOfElements();

    public abstract int getTotalElements();

    public abstract boolean hasPreviousPage();

    public abstract boolean isFirstPage();

    public abstract boolean hasNextPage();

    public abstract boolean isLastPage();

    public abstract Iterator<T> iterator();

    public abstract List<T> getContent();

    public abstract boolean hasContent();

    public abstract Sort getSort();
}
